﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Search.aspx.cs" Inherits="DungVM_Search" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

<link rel="Stylesheet" href="Style/StyleSheetVacancy.css" type="text/css" />

    <link type="text/css" href="../Styles/StyleSheetVacancy.css" />

    <link href="autocomplate/jquery.autocomplete.css" rel="stylesheet" type="text/css" />
    <script src="../Styles/jquery-1.2.6.min.js" type="text/javascript"></script>
    <script src="../Styles/jquery.autocomplete.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#<%=txtJob.ClientID%>").autocomplete('autocomplate/AutoComplate.ashx');
        });       
    </script>
    <title>Seach Vacancy</title>
    <style type="text/css">
        .style1
        {
            width: 170px;
        }
        .style2
        {
            width: 126px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceholder" Runat="Server">
    <div id="menuseachvacancy">
    <h2>Seach Vacancy </h2>
    </div>
    <div class="divsearch">     
                    <asp:Label ID="lblSearch" runat="server" Text="Search by Job :"></asp:Label>
                 
                
                    <asp:TextBox ID="txtJob" runat="server"></asp:TextBox>
                
                    <asp:Button ID="btnSearch" runat="server" Text="Fill Vacancy" onclick="btnSearch_Click" Width="120px" Height="25px" />
           
    </div>
    <div id="Vacancylist">
        <asp:GridView ID="grvSearchVacancy" runat="server" AutoGenerateColumns="False" 
            BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
            CellPadding="3" AllowPaging="True" PageSize="20" Width="700px" 
            Font-Size="12px">
            <Columns>

                <asp:TemplateField HeaderText="Title">
                    <ItemTemplate>
                       <a href="ViewVacancy.aspx?Id=<%# Eval("Title") %>"><asp:Label ID="lblTitle" runat="server" Text='<%# Eval("Title") %>'></asp:Label></a>
                    </ItemTemplate>
                </asp:TemplateField>
                
                 <asp:TemplateField HeaderText="Description">
                    <ItemTemplate>
                        <asp:Label ID="lblDescription" runat="server" Text='<%# Eval("Description") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>

                 <asp:TemplateField HeaderText="NumberOfJob">
                    <ItemTemplate>
                        <asp:Label ID="lblNumberOfJob" runat="server" Text='<%#Eval("NumberOfJob") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>


                 <asp:TemplateField HeaderText="Salary">
                    <ItemTemplate>
                        <asp:Label ID="lblSalary" runat="server" Text='<%# Eval("Salary") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>

                 <asp:TemplateField HeaderText="WorkPlace">
                    <ItemTemplate>
                        <asp:Label ID="lblWorkPlace" runat="server" Text='<%# Eval("WorkPlace") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>

                 <asp:TemplateField HeaderText="DateFulfilled">
                    <ItemTemplate>
                        <asp:Label ID="lblDateFulfilleds" runat="server" Text='<%#Eval("DateFulfilled") %>'>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>

            </Columns>
            <EmptyDataTemplate>
                <asp:Label ID="lblitle" runat="server"></asp:Label>
            </EmptyDataTemplate>
            <FooterStyle BackColor="White" ForeColor="#000066" />
            <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" 
                Font-Size="16px" />
            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
            <RowStyle ForeColor="#000066" />
            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#007DBB" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#00547E" />
        </asp:GridView>
    </div>
</asp:Content>


